#!/usr/bin/env bash

sourcedest="${HOME}/projects/bilin-member"
composefile="${HOME}/projects/ci-bilin/dev/docker/docker-compose.yml"
cd $sourcedest
branch=$(git name-rev --name-only HEAD)
git pull origin $branch
docker-compose -f $composefile build bilin-member
docker-compose -f $composefile rm -sf bilin-member
docker-compose -f $composefile up -d --no-recreate --no-build bilin-member
